\hypertarget{encoders_8h}{
\section{atmega1281/low/include/encoders.h File Reference}
\label{encoders_8h}\index{atmega1281/low/include/encoders.h@{atmega1281/low/include/encoders.h}}
}
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__nxbot__encoder_gad221dba2d598f81f78bb66ec479c9a93}{ENC\_\-FORWARD}~0
\begin{DoxyCompactList}\small\item\em Constant used to define the behavior of the encoders. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__encoder_ga67c39a2a0310bf458988c9965f480562}{ENC\_\-REVERSE}~1
\begin{DoxyCompactList}\small\item\em Constant used to define the behavior of the encoders. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__encoder_gad22ac75fffb7e44913bff8e3916972a8}{ENC\_\-LEFT}~0
\begin{DoxyCompactList}\small\item\em Constant used in \hyperlink{group__nxbot__encoder_gadaa18e9376adb2838d4db7b819070083}{encoders\_\-read()} function. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__encoder_ga27432c06a7d08af0da6941f75127a0bd}{ENC\_\-RIGHT}~1
\begin{DoxyCompactList}\small\item\em Constant used in \hyperlink{group__nxbot__encoder_gadaa18e9376adb2838d4db7b819070083}{encoders\_\-read()} function. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__encoder_ga050a620db67d2e9687e40295e0d29722}{encoders\_\-resetRight}()~encoders\_\-writeRight(0)
\begin{DoxyCompactList}\small\item\em Resets right encoder. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__encoder_gafc6b8648337ac6e21a67245c288b12a8}{encoders\_\-resetLeft}()~encoders\_\-writeLeft(0)
\begin{DoxyCompactList}\small\item\em Resets left encoder. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__encoder_ga9fe7ca911358cd267bacb01ceed426ed}{encoders\_\-reset}()~encoders\_\-write(0,0)
\begin{DoxyCompactList}\small\item\em Resets both encoders. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
unsigned int \hyperlink{group__nxbot__encoder_ga2bb92e75ace932c227b999813bf02aff}{encoders\_\-readLeft} (void)
\begin{DoxyCompactList}\small\item\em Read the left odometer. \item\end{DoxyCompactList}\item 
unsigned int \hyperlink{group__nxbot__encoder_ga0c464163534a8c0aa7ec050c8e9460e5}{encoders\_\-readRight} (void)
\begin{DoxyCompactList}\small\item\em Read the right odometer. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_ga77c8c684f9d572edf7f85fde23ca390d}{encoders\_\-readAll} (unsigned int $\ast$enc\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em Read both odometers. \item\end{DoxyCompactList}\item 
unsigned int \hyperlink{group__nxbot__encoder_gadaa18e9376adb2838d4db7b819070083}{encoders\_\-read} (unsigned char enc)
\begin{DoxyCompactList}\small\item\em Read both odometers. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_ga9afcfd5f2888b73fa165cb174ddc6759}{encoders\_\-writeLeft} (unsigned int val)
\begin{DoxyCompactList}\small\item\em Write predefined value for left encoder. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_gaaa61cfb8d7784d0a532402f8c762165c}{encoders\_\-writeRight} (unsigned int val)
\begin{DoxyCompactList}\small\item\em Write predefined value for right encoder. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_ga19b9241b75d9aadb3293d06f45270120}{encoders\_\-write} (unsigned int left, unsigned int right)
\begin{DoxyCompactList}\small\item\em Write predefined values for the encoders. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_gaf02e2149caeb6116f256783348031c86}{encoders\_\-init} (void)
\begin{DoxyCompactList}\small\item\em Inizialisation of encoders hardware. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_gab663edeed94236bcf5c7b4cc508c0506}{encoders\_\-start} (void)
\begin{DoxyCompactList}\small\item\em Enables both encoders. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_gaa9f0d84783bf4bc18350db551455ed81}{encoders\_\-stop} (void)
\begin{DoxyCompactList}\small\item\em Disables both encoders. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_ga5664efae48b33c8cee94b5313a58b0a2}{encoders\_\-setDirection} (unsigned char left, unsigned char right)
\begin{DoxyCompactList}\small\item\em Defines wether the encoder should count backward or forward. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
